package com.weepal.pavement.mqtt.demo;

import com.alibaba.nacos.api.config.ConfigType;
import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySources;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication
@EnableAspectJAutoProxy
@EnableCaching
@MapperScan("com.weepal.pavement.mqtt.demo.mapper")
@NacosPropertySource(dataId = "dataSource", autoRefreshed = true)
/*@NacosPropertySources(value = {
        @NacosPropertySource(dataId = "example", type = ConfigType.YAML, autoRefreshed = true),
        @NacosPropertySource(dataId = "wjj", type = ConfigType.YAML, autoRefreshed = true),
        @NacosPropertySource(dataId = "dataSource", type = ConfigType.YAML, autoRefreshed = true)})*/
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
